const developmentUrl = `https://digitalhuman.qifenban.cn`;

// #ifdef H5
let productionUrl = 'https://digitalhuman.qifenban.cn';
if (process.env.NODE_ENV !== 'development') {
	productionUrl = globalThis.location.origin
	if (productionUrl.endsWith("//")) {
		productionUrl = productionUrl.replace(/\/\/$/, "/");
	}
}
// #endif
const baseUrl = process.env.NODE_ENV === 'development' ? developmentUrl : productionUrl;

export default baseUrl;